<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>印章管理</title>
</head>
<body class="layui-layout-body">
    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div class="body_right">
            <h4 class="nav_title">设备管理
            </h4>
            <div class="layui-form" >
            		<form action="/install/list.htm" method="get">
                <div class="layui-form-item">
                    <div class="layui-inline">
                        <label class="layui-form-label width60">设备编号</label>
                        <div class="layui-input-inline width150">
                            <input type="text" class="layui-input" name="devicesId" value="${query.devicesId}" placeholder=" 设备编号 ">
                        </div>
                    </div>
                    <div class="layui-inline">
                        <label class="layui-form-label width60">状态</label>
                        <div class="layui-input-block width150">
                            <select name="installStatus" lay-filter="aihao">
                            	<option value="" selected="">==全部==</option>
                                <option value="PENDING" <#if query.installStatus=='PENDING'> selected </#if>>待审核</option>
                                <option value="PASSED" <#if query.installStatus=='PASSED'> selected </#if>>已通过</option>
                                <option value="REJECT" <#if query.installStatus=='REJECT'> selected </#if>>已拒绝</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-inline width80">
                        <div class="layui-input-inline ">
                            <button class="layui-btn" lay-submit="" lay-filter="demo1" >搜索</button>
                        </div>
                    </div>
                </div>
                </form>
            </div>
            <table class="layui-table  layui-form" mytable" lay-even="" lay-skin="nob">
                <thead>
                <tr>
                    <th>申请时间</th>
                    <th>申请人</th>
                    <th>设备编号</th>
                    <th>名称</th>
                    <th>状态</th>
                    <th>操作</th>
                </tr>
                </thead>
                <tbody>
                	<#list pm.datas as item>
                    <tr>
                        <td>${item.applyTime?string('yyyy-MM-dd HH:mm:ss')}</td>
                        <td>${item.staff.name}</td>
                        <td>${item.devicesCode}</td>
                        <td></td>
                        <td>${item.installStatus}</td>
                        <td class="allbox_a">
                        	<#if item.installStatus == 'PENDING'>
                        	   <a href="javascript:verify(1);">审核</a>

                        	</#if>
                        </td>
                    </tr>
                    </#list>
                </tbody>
            </table>
            <@p.page pm=pm></@p.page>

        </div>
     </div>
     
    <script>
    
    
    function verify(id){
    
    layer.open({
  type: 1,
  skin: 'layui-layer-demo', //样式类名
  closeBtn: 0, //不显示关闭按钮
  anim: 2,
  shadeClose: true, //开启遮罩关闭
  content: '内容'
});
    
    }
    
    
    
        layui.use(['form','layer','laydate'], function(){
            $ = layui.jquery;
          var form = layui.form,layer = layui.layer,laydate = layui.laydate;
          
          
          
            
        
          
          
        });
    </script>
     
          
               
                         
   

</body>
</html>